﻿
<div>
    <form name="versionAppCreateOrEditForm" role="form" novalidate class="form-validation">
        <div class="modal-header">
            <h4 class="modal-title">
                <span ng-if="vm.versionApp.id">编辑信息:{{vm.versionApp.name}}</span>
                <span ng-if="!vm.versionApp.id">新增信息</span>
            </h4>
        </div>
        <div class="modal-body">

            <div class="form-group form-md-line-input form-md-floating-label no-hint">
                <input type="text" class="form-control" name="Version" ng-class="{'edited':vm.versionApp.version}" ng-model="vm.versionApp.version" maxlength="100" />
                <label>版本号</label>
            </div>

            <div class="form-group form-md-line-input form-md-floating-label no-hint">
                <input type="text" class="form-control" name="Desc" ng-class="{'edited':vm.versionApp.desc}" ng-model="vm.versionApp.desc" maxlength="500" />
                <label>版本描述</label>
            </div>

            <div class="form-group form-md-line-input form-md-floating-label no-hint">
                <select name="Flag" class="form-control edited ng-pristine ng-valid ng-not-empty ng-touched" ng-model="vm.versionApp.flag" required>
                    <option ng-repeat="x in vm.appFlagList" value="{{x.value}}" ng-selected="vm.versionApp.flag==x.value">{{x.displayText}}</option>
                </select>
                <label>标记</label>
            </div>

            <div class="form-group form-md-line-input form-md-floating-label no-hint">
                <input type="text" class="form-control" name="DownLoadUrl" ng-class="{'edited':vm.versionApp.downLoadUrl}" ng-model="vm.versionApp.downLoadUrl" maxlength="500" />
                <label>下载地址</label>
            </div>

            <div class="form-group form-md-line-input form-md-floating-label no-hint">
                <input type="text" class="form-control" name="AppType" ng-class="{'edited':vm.versionApp.appType}" ng-model="vm.versionApp.appType" />
                <label>APP类型</label>
            </div>

        </div>
        <div class="modal-footer">
            <button ng-disabled="vm.saving" type="button" class="btn btn-default" ng-click="vm.cancel()">@L("Cancel")</button>
            <button type="submit" button-busy="vm.saving" busy-text="@L("SavingWithThreeDot")" class="btn btn-primary blue" ng-click="vm.save()" ng-disabled="versionAppCreateOrEditForm.$invalid"><i class="fa fa-save"></i> <span>@L("Save")</span></button>
        </div>
    </form>
</div>